//
//  ListNetworkViewController.h
//  tianyaClient
//
//  Created by Rocket on 11-7-25.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PullRefreshTableController.h"

@interface ListNetworkViewController : PullRefreshTableController <UITableViewDelegate,UITableViewDataSource> {
	UITableView* mainTable_;
    UIButton* getMoreWaittingView_;
    UIView* firstLoadingView_;
    
	NSArray* feeds_;//列表的数据结构数组,指针作用，真正数据在其他地方
    
    UIViewController* parentViewController_;
}

@property (nonatomic,retain) UITableView* mainTable;
@property (nonatomic,assign) NSArray* feeds;
@property(nonatomic,assign) UIViewController* parentViewController;

- (void)scrollTableToHead:(BOOL)animated;
- (void)scrollTableToFoot:(BOOL)animated;
- (void)onRefresh;

//protected
- (CGRect)getViewFrame:(CGRect)rect;
- (CGRect)getTableViewFrame;
- (BOOL)requestListData:(BOOL)refresh;
- (void)showGetMoreWaittingView;
- (void)hideGetMoreWaittingView;
- (void)showWaitingView;
- (void)hideWaitingView;
@end
